import hashlib

msg = "123456"

md5 = hashlib.md5(msg.encode("utf-8"))
print(md5)

print(md5.hexdigest())
